package org.bai.miaoshaproject.service;

import org.bai.miaoshaproject.error.BusinessException;
import org.bai.miaoshaproject.service.model.UserModel;

/**
 * ClassName UserService
 *
 * @author Bai
 * @version 1.0
 * @date 2019/5/26 0026 下午 22:53
 **/

public interface UserService {

    /**
     * 通过用户ID查询对应的信息
     * @param id {@link Integer} 用户ID
     * @return {@link UserModel}
     */
    UserModel getUserById(Integer id);

    void register(UserModel userModel) throws BusinessException;

    UserModel validateLogin(String telphone, String encrptPassword) throws BusinessException;
}
